package com.hsmpay.mobile.pojo.terminal;

import com.hsmpay.common.pojo.BasePojo;

import java.util.Date;

/**
 * 终端类型 java bean
 * 对应 info_terminalType表
 *
 * @author 颜铃璋
 * @created 2012-12-18
 */
public class TerminalType extends BasePojo {
    private static final long serialVersionUID = -4472323875941263618L;

    private Long id;//ID
    private String name;//终端名称
    private String description;//终端描述
    private Date createDate;//创建时间
    private Integer deleted;

    /*
      5)、直接生成
        openssl req -x509 -out public_key.der -outform der -new -newkey rsa:1024 -keyout private_key.pem
      6)、生成pem的公钥
        openssl rsa -in private_key.pem -pubout -out public_key.pem
      7)、将 x509 格式的私钥转成 PKCS#8 格式的私钥  可以在java上使用
        openssl pkcs8 -topk8 -in private_key.pem -out pkcs8_rsa_private_key.pem -nocrypt

      ios 用x509私钥   java 用 pkcs8私钥
     */
    //终端密钥
    private String privateKey;//私钥  pkcs8
    private String privateKeyX509;//私钥
    private String publicKey;//公钥
    private Integer type;//1手机 2接口  5 大poss  6小poss
    private String realmName;//域名

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getPrivateKey() {
        return privateKey;
    }

    public void setPrivateKey(String privateKey) {
        this.privateKey = privateKey;
    }

    public String getPrivateKeyX509() {
        return privateKeyX509;
    }

    public void setPrivateKeyX509(String privateKeyX509) {
        this.privateKeyX509 = privateKeyX509;
    }

    public String getPublicKey() {
        return publicKey;
    }

    public void setPublicKey(String publicKey) {
        this.publicKey = publicKey;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

	public String getRealmName() {
		return realmName;
	}

	public void setRealmName(String realmName) {
		this.realmName = realmName;
	}
}
